package com.gtlab1207.br_awareness.models.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 验证手机号
 */
public class UserPhoneDto {
    /**
     * 手机号
     */
    @Pattern(regexp = "1[3|5|7|8|][0-9]{9}")
    private String phone;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    public UserPhoneDto() {
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
